import os
import django
from django.urls import reverse

# 初始化django配置，注意修改blog_manager为项目名
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blog_manager.settings")
django.setup()

# 根据path的name属性反向解析URL
# url = reverse("xxx") # TODO
# print(url)

# 根据视图函数反向解析URL
# url = reverse(views.xxx) # TODO
# print(url)

# 根据path的name属性反向解析URL
# url = reverse("dynamic_hello", args=()) # TODO
# print(url)

# 根据视图函数反向解析URL
# url = reverse(views.dynamic_hello,
#               kwargs={
#                   "year": 2024,
#                   "month": 4,
#                   "day": 15}
#               )
# print(url)
